//上传图片
function upImage() {
    var myImage = ue.getDialog("insertimage");
    myImage.open();
}

//弹出文件上传的对话框
function upFiles() {
    var myFiles = ue.getDialog("attachment");
    myFiles.open();
}

//上传文件成功
function okUpload(list){
	var content = "已选择:"
	var fileD = dialog({
		title:"上传教案",
		okValue : '确定',
		ok : function() {
			this.title('提交中…');
			submitPlan(fileD);
			return false;
		},
		cancelValue : '取消',
		cancel : function() {}
	});
	fileD.showModal();
	fileD.content(content+list);
}